// 删除arr数组中 值是it的元素
const remove_arr_item = (arr, it) => {
  let arr1;
  let index = arr.indexOf(it);
  arr1 = [...arr.slice(0, index), ...arr.slice(index + 1)];
  return arr1;
}

module.exports = remove_arr_item;